package com.cityp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cityp.bean.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface questionMapper extends BaseMapper<Question> {
    List<Question> get(@Param("sum") int sum,@Param("num")int num);
    List<Question> selectByType(@Param("tid") int tid, @Param("offset") int offset,@Param("rows")int rows);
    List<Question> findAll();
}
